﻿<%@ Page Title="Relatórios" Language="C#" MasterPageFile="~/paginas/MasterPageRel.master" AutoEventWireup="true"
    CodeFile="RelatorioCadastros.aspx.cs" Inherits="paginas_Relatorios"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script>
        function iprint(ptarget) {        
        alert(ptarget);
            document.getElementById(ptarget).focus();
            document.getElementById(ptarget).print();
        } 
    </script>
    <h1>
        Relatório de Cadastro
    </h1>
    <div id="action-bar">
        <div>
            <span>Filtrar
                <asp:DropDownList runat="server" ID="ddTipoFiltro">
                    <asp:ListItem Value="0" Text="-- SELECIONE --" />
                    <asp:ListItem Value="person" Text="Pessoas" />
                    <asp:ListItem Value="products" Text="Produtos" />
                </asp:DropDownList>
            </span><span>
                <asp:Button ID="btnPesquisar" runat="server" Text="Gerar" OnClick="btnPesquisar_Click" />
                <%--<input type="button" name="imprimir" value="Imprimir" onclick="iprint('<%= iframe_relatorio.ClientID %>')" />--%>
            </span>
        </div>
    </div>
    <iframe id="iframe_relatorio" runat="server" width="100%" height="350" frameborder="0">
    </iframe>
</asp:Content>
